/**
 * zbestpayment.com Inc.
 * Copyright (c) 2004-2017 All Rights Reserved.
 */
package com.zbest.zpay.service.paycore;

import com.zbest.zpay.service.paycore.model.PayInfoDTO;
import com.zbest.zpay.service.paycore.model.PaycoreResult;

/**
 * 
 *
 * @author Administrator
 * @version $Id: PayService.java, v 0.1 2017-4-5 下午10:19:41 Administrator Exp $
 */
public interface PayService {

    /**
     * 支付
     * 
     * @param request
     * @return
     */
    public PaycoreResult pay(PayInfoDTO request);
    
    /**
     * 确认支付，部分支付渠道需要确认后才能完成支付
     * 
     * @param request
     * @return
     */
    public PaycoreResult confirmPay(PayInfoDTO request);
    
    /**
     * 退款
     * 
     * @param request
     * @return
     */
    public PaycoreResult refund(PayInfoDTO request);

}
